package com.zhenfan.pattern.abstractfactory;

import com.zhenfan.pattern.entity.BuLuTuo;
import com.zhenfan.pattern.entity.ChaiQuan;
import com.zhenfan.pattern.entity.Dog;
import com.zhenfan.pattern.entity.HaShiQi;

/**
 * 抽象工厂一个实现
 *
 * @author wangmh
 * @create 2018-10-19 18:30
 **/
public class Factory extends AbstractFactory {
    @Override
    public Dog getBuLuTuo() {
        return new BuLuTuo();
    }

    @Override
    public Dog getChaiQuan() {
        return new ChaiQuan();
    }

    @Override
    public Dog getHaShiQi() {
        return new HaShiQi();
    }
}
